home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_lavabubble.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  78 lines

  1. # Jones 3D Cog Script
  2. #
  3. # Gen_Lavabubble.cog
  4. #
  5. # Sophia helps Indy through a critical gate
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. # ................... MESSAGES ...................
  15.  
  16.     message    startup        
  17.     message    pulse
  18.     message    arrived
  19.     
  20. # .................. OBJECTS .....................    
  21.  
  22.     thing        bubble
  23.     thing        particlespot
  24.  
  25. # ................. MATERIAL ....................
  26.  
  27.     material    bubbleskin=bubble_a4lava_top.mat    local
  28.     material    lavaskin=gen_a4sfx_lava_particle.mat    local
  29.  
  30.  
  31. # ................. TEMPLATES ....................
  32.     template    particlesystem    
  33.  
  34. end
  35.  
  36. # ==============================================================================
  37.  
  38. code
  39.  
  40. startup:
  41.  
  42.     SetThingFlags(bubble, 0x10);
  43.     Sleep(2.0);
  44.     SetPulse(6.0);
  45.     return;
  46.  
  47. # ..............................................................................
  48.  
  49. pulse:
  50.  
  51.     ClearThingFlags(bubble, 0x10);
  52.     SetMaterialCel(bubbleskin, 0);
  53.     MoveToFrame(bubble, 1, 0.65);
  54.     MaterialAnim(bubbleskin, 16, 0);
  55.     return;
  56.  
  57. # ..............................................................................
  58. arrived:
  59.  
  60. If ((GetSenderRef() == bubble) && (GetCurFrame(bubble) == 1))
  61. {
  62.     SetMaterialCel(lavaskin, 0);
  63.     CreateThing(particlesystem, particlespot);
  64.     MaterialAnim(lavaskin, 16, 0);
  65.     SetThingFlags(bubble, 0x10);
  66.     MoveToFrame(bubble, 0, 50);
  67. }
  68.  
  69. return;
  70.  
  71.  
  72.  
  73. # ..............................................................................
  74. end
  75.  
  76.  
  77.  
  78.